<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>封装16进制函数</title>
</head>

<body>
    <script src="../utils.js"></script>
    <script>
        var str="0123456789abcdef"
        var color="#";
        for(var i=0;i<6;i++){
            color+=str[randomNum(0,15)]
            // 拼接
        }
        document.body.style.background=color;
        color.log(color);
    </script>
    
</body>
</html>